package com.ruoyi.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.WarehousingEntry;
import com.ruoyi.system.domain.WarehousingEntryInfo;
import com.ruoyi.system.response.WarehousingEntryInfoDetailList;

/**
 * 入库单物料详情Mapper接口
 *
 * @author tanshen
 * @date 2023-08-23
 */
public interface WarehousingEntryInfoMapper extends BaseMapper<WarehousingEntryInfo> {
    /**
     * 查询入库单物料详情
     *
     * @param id 入库单物料详情主键
     * @return 入库单物料详情
     */
    public WarehousingEntryInfo selectWarehousingEntryInfoById(Long id);

    /**
     * 查询入库单物料详情列表
     *
     * @param warehousingEntryInfo 入库单物料详情
     * @return 入库单物料详情集合
     */
    public List<WarehousingEntryInfo> selectWarehousingEntryInfoList(WarehousingEntryInfo warehousingEntryInfo);

    /**
     * 新增入库单物料详情
     *
     * @param warehousingEntryInfo 入库单物料详情
     * @return 结果
     */
    public int insertWarehousingEntryInfo(WarehousingEntryInfo warehousingEntryInfo);

    /**
     * 修改入库单物料详情
     *
     * @param warehousingEntryInfo 入库单物料详情
     * @return 结果
     */
    public int updateWarehousingEntryInfo(WarehousingEntryInfo warehousingEntryInfo);

    /**
     * 删除入库单物料详情
     *
     * @param id 入库单物料详情主键
     * @return 结果
     */
    public int deleteWarehousingEntryInfoById(Long id);

    /**
     * 批量删除入库单物料详情
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWarehousingEntryInfoByIds(String[] ids);

    List<WarehousingEntryInfoDetailList> detailList(String entryOrderId);
}
